package com.natasa.progresspercent;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;

import com.natasa.progresspercent.slice.MainAbilitySlice;

/**
 * 主要能力
 *
 * @author Administrator
 * @since 2021-07-28
 */
public class MainAbility extends Ability {
    /**
     * 开始
     *
     * @param intent 意图
     */
    @Override
    public void onStart(Intent intent) {
        WindowManager.getInstance().getTopWindow().get().setStatusBarColor(Color.getIntColor("#0097A7"));
        WindowManager.getInstance().getTopWindow().get().setNavigationBarColor(Color.WHITE.getValue());
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}
